package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.DistributionWithdrawDO;
import com.iotechn.unimall.data.dto.DistributionWithdrawDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rize
 * Date: 2019/11/30
 * Time: 16:59
 */
public interface DistributionWithdrawMapper extends BaseMapper<DistributionWithdrawDO> {

    public Integer sumWithdraw(Long distributionId);

    public List<DistributionWithdrawDTO> getWithdrawPage(@Param("distributionId") Long distributionId, @Param("offset") Integer offset,@Param("limit") Integer limit);

}
